package com.gitee.cui.client.command;

import com.gitee.cui.common.util.Logger;
import org.springframework.stereotype.Service;

import java.util.Scanner;

/**
 * 登出指令处理类
 * @author cuiqingqiang
 * @version 1.0
 * @date 2021/10/27 14:41
 **/
@Service
public class LogoutConsoleCommand implements BaseCommand {

    /**
     * 登出指令key
     */
    public static final String KEY = "10";

    @Override
    public String getKey() {
        return KEY;
    }

    @Override
    public String getTip() {
        return "退出";
    }

    @Override
    public void exec(Scanner scanner) {
        Logger.cfo("退出命令执行成功");
    }
}
